﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    CodeFile="ProviderCarCoverType.aspx.cs" MaintainScrollPositionOnPostback="true"
    Inherits="Provider_CarInsurance_ProviderCarCoverType" Title="Car Coverage Type" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <div class="bc_main">
        <ul>
            <li class="first_pl"><a href="/Provider/CarInsurance/LibertyInsuranceHome.aspx">Menu</a></li>
            <li><a href="/Provider/CarInsurance/TableMatching.aspx">Car Insurance</a></li>
            <li><a href="/Provider/CarInsurance/ViewProviderCarCoverType.aspx">Coverage Type</a></li>
            <li class="last_pl">Add/Edit Coverage Type</li>
        </ul>
    </div>
    <div class="provider_inner">
        <h1>Add/Edit Coverage Type</h1>
        
		<fieldset>
            <dl>
        	    <dt><label>CX Coverage Type</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlCXCoverageType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCXCoverageType_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvCXCoverageRate" runat="server" InitialValue="-1"
                        ControlToValidate="ddlCXCoverageType" ErrorMessage="Select Coverage type to match."
                        ValidationGroup="coveragetype"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
        	    <dt><label>Your Coverage Type</label></dt>
                <dd>
                    <asp:TextBox ID="txtYourCoverageType" Width="350px" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvYourCoverageType" runat="server" ControlToValidate="txtYourCoverageType"
                        ErrorMessage="Require your coverage type." ValidationGroup="coveragetype"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
        	    <dt><label>Coverage Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtCoverageRate" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCoverageRate" runat="server" ControlToValidate="txtCoverageRate"
                        ErrorMessage="Enter your coverage rate." ValidationGroup="coveragetype" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCoverageRate" runat="server" ControlToValidate="txtCoverageRate"
                        ErrorMessage="Coverate rate value is not valid." ValidationGroup="coveragetype"
                        ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
        	    <dt><label>Minimum Premium</label></dt>
                <dd>
                    <asp:TextBox ID="txtMinimumPremium" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMinimumPremium" runat="server" ControlToValidate="txtMinimumPremium"
                        ErrorMessage="Enter your minimum premium value." Display="Dynamic" ValidationGroup="coveragetype"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMinimumPremium" runat="server" ControlToValidate="txtMinimumPremium"
                        ErrorMessage="Minimum Premium value is not valid." ValidationGroup="coveragetype"
                        ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
        	    <dt><label>Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
    	</fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" CssClass="left_btn" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
            <asp:ImageButton CssClass="float_btn" ID="ibtSubmit" ValidationGroup="coveragetype" runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg" Text=""></asp:Label>
        
    </div>
    
</asp:Content>
